package com.zb.jsp.utils;

public class IdsLink {
	
	/**	
	 * 通过传入的id 数组对其进行拼接
	 * @param selectId 传入的id数组
	 * @return 返回类似于 '1','12','121'的字串
	 */
	public static String idsLink(String[] selectId){
		String ids = "";
		for(int i=0;i<selectId.length;i++){
			ids += "'"+selectId[i] + "'";
			if(i!=selectId.length-1){
				ids += ",";
			}		
		}
		return ids;		
	}
}
